package com.xuecheng.manage_course.controller;

import com.xuecheng.api.course.CategoryControllerApi;
import com.xuecheng.framework.domain.course.ext.CategoryNode;
import com.xuecheng.manage_course.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Sam
 * @version 1.0
 * @create 2019/6/4 16:50
 **/
@RestController
public class CategoryController implements CategoryControllerApi {
    @Autowired
    CategoryService categoryService;

    @GetMapping("/category/list")
    public CategoryNode findList(){
        return categoryService.findList();
    }
}
